// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router/core-router.js'

// 导入自定义的axios的包
import myAxois from './system/http/myAxios.js'

Vue.prototype.$axios = myAxois;

// 自定义的提示框
import myLayer from './system/utils/layerutils.js'

Vue.prototype.$layer = myLayer;

// 导入ElementUI组件库，全部导入
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

// 导入store全局数据管理
import store from './store/globalsore.js';

// 导入全局过滤器
import './filters/filters.js';
// 导入全局方法
import './system/utils/globalMethod.js'

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store: store,
    components: {App},
    template: '<App/>'
});
